package com.vrsys.view;

import java.io.Serializable;
import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component("pageQuery")
@Scope("request")
public class PageQuery<T> implements Serializable {
    private static final long serialVersionUID = 6615872900149528113L;
    private String language;
    private int fromIndex;   // offset starts from 0
    private int elementNumber = 4; // row count default to be 4
    private List<T> data;

    public String getLanguage() {
        return language;
    }
    public void setLanguage(String language) {
        this.language = language;
    }
    public int getFromIndex() {
        return fromIndex;
    }
    public void setFromIndex(int fromIndex) {
        this.fromIndex = fromIndex;
    }
    public int getElementNumber() {
        return elementNumber;
    }
    public void setElementNumber(int elementNumber) {
        this.elementNumber = elementNumber;
    }
    public List<T> getData() {
        return data;
    }
    public void setData(List<T> data) {
        this.data = data;
    }
}
